﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="caipin_Singe.aspx.cs" Inherits="Catering.Catering_Page.Caipin.caipin_Singe" %>
<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/Dtd/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>菜品管理</title>
<link rel="stylesheet" type="text/css" href="../../../Style/head.css" />
<link rel="stylesheet" type="text/css" href="../../../Style/center.css"/>
<link href="../../../Style/StyleSheet.css" rel="stylesheet" type="text/css" />
<link href="../../../Style/jquery.treeview.css" rel="stylesheet" type="text/css" />
<link href="../../../Style/tinybox_style.css" rel="stylesheet" type="text/css" />

<script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.cookie.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.treeview.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.treeview.edit.js" type="text/javascript"></script>
<script src="../../Scripts/tinybox.js" type="text/javascript"></script>
<script src="../../../Style/xxk.js" type="text/javascript"></script>

    
<style type="text/css">
.Create_Recipe{ margin-top:0;}
.Create_Recipe{ border:1px solid #159aec; border-top:none; width:998px;} 
.soso_lt{ padding:5px 0;}
.soso_lt a{ margin-left:3px;}
</style>


<!--删除菜品信息---->
<script language="javascript" type="text/javascript">
    function Del_DishInfo() {
        var test = $("#Txt_jinghanliang" + DishInfo).html();
        if (test != null) {
            $("#Txt_jinghanliang" + DishInfo).parent().parent().remove();

            $.ajax({
                type: "Post",
                url: "../../PostDate.aspx/DishInfo_Operaction",
                data: "{'Del_DishInfo_ID':'" + DishInfo + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {

                }
            });

        }

    }
    
</script>
<!----搜索菜品------>
<script language="javascript" type="text/javascript">
    $(document).ready(function () {

        $("#But_Dish_Seach").click(function () {

            $("#Dl_div table tr").css("color", "black");
            if ($("#Txt_Dish_Seach").val() != "") {
                $("#Dl_div  a:contains('" + $("#Txt_Dish_Seach").val() + "')").css("color", "red").parentsUntil("#Dl_div").filter("div").prev("table").find("a").css("color", "red");

            }
        });
    });
    
</script>
<!-----搜索原料------>
<script language="javascript" type="text/javascript">
    $(document).ready(function () {

        $("#but_Raw_seach").click(function () {

             $("#Dl_div table tr").css("color", "black");
             if ($("#Txt_seach_Raw").val() != "") {
                $("#Div_RawMaterial a:contains('" + $("#Txt_seach_Raw").val() + "')").css("color", "red").parentsUntil("#Div_RawMaterial").filter("div").prev("table").find("a").css("color", "red");
                }
           
        });
    });
    
</script>
<!------加载-------->
<script language="javascript" type="text/javascript">

    $(document).ready(
        function () {
            alert
            $.ajax({
                type: "Post",
                url: "../../PostDate.aspx/LoadTreeView",
                data: "{'strTreeView':'Librarydata '}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {

                    //   $("#RawMaterial").append(data.d[0]); 

                }
            });

        });
   
</script>
<!-----加行-------->
<script language="javascript" type="text/javascript">
    var Xuhao = 0;

    $(document).ready(
        function () {
            Xuhao = Xuhao + 1;
            var intId = Math.floor(Math.random() * 1000 + 1);

            $("#RawMaterial a").click(function () {


                var RawName = $(this)[0].innerText;
                var lblvalue = $("#lbl_reliang").html() + "," +
                         $("#lbl_danbaizhi").html() + "," +
                 $("#lbl_zhifang").html() + "," +
                 $("#lbl_tanshuihuahewu").html() + "," +
                 $("#lbl_shanshixianwei").html() + "," +

                 $("#lbl_weishengsuA").html() + "," +
                 $("#lbl_weishengsuB1").html() + "," +
                 $("#lbl_weishengsuB2").html() + "," +
                 $("#lbl_weishengsuC").html() + "," +
                 $("#lbl_weishengsuE").html() + "," +
                 $("#lbl_shihuangchundangliang").html() + "," +
                 $("#lbl_nikesuan").html() + "," +
                 $("#lbl_huluobosu").html() + "," +

                 $("#lbl_gai").html() + "," +
                 $("#lbl_ling").html() + "," +
                 $("#lbl_jia").html() + "," +
                 $("#lbl_na").html() + "," +
                 $("#lbl_mei").html() + "," +
                 $("#lbl_tie").html() + "," +
                 $("#lbl_xin").html() + "," +
                 $("#lbl_xi").html() + "," +
                 $("#lbl_tong").html() + "," +
                 $("#lbl_men").html() + "," +
                 $("#lbl_dian").html();

                if (RawName != "") {

                    $.ajax({
                        type: "Post",
                        url: "../../PostDate.aspx/Raw_Row_New",
                        data: "{'RawName':'" + RawName + "','lblvalue':'" + lblvalue + "'}",
                        contentType: "application/json; charset=utf-8",
                        dataType: "json",
                        success: function (data) {

                            var newrow = "<tr>  " +
                                        "    <td class='xh_td'>" + intId + " </td>" +
                                        "    <td id='RawName'>" + data.d[1] + "</td>" +
                                        "    <td>" + data.d[2] + "</td>" +
                                        "    <td id='leibie'> <input type='text'  value='100' ID='Txt_jinghanliang" + intId + "' style='width:50px' onpropertychange='Txt_Number_Chanage(" + intId + ")'/></td>" +
                                        "     <td>" + data.d[3] + "</td>" +
                                        "     <td align='center'><a href='#'><img src='../../Images/trash.gif' /></a></td>" +
                                        "    </tr>";
                            $("#New_Raw_Row").appendTo(newrow);

                            $("#lbl_reliang").html(data.d[4]);
                            $("#lbl_danbaizhi").html(data.d[5]);
                            $("#lbl_zhifang").html(data.d[6]);
                            $("#lbl_tanshuihuahewu").html(data.d[7]);
                            $("#lbl_shanshixianwei").html(data.d[8]);

                            $("#lbl_weishengsuA").html(data.d[9]);
                            $("#lbl_weishengsuB1").html(data.d[10]);
                            $("#lbl_weishengsuB2").html(data.d[11]);
                            $("#lbl_weishengsuC").html(data.d[12]);
                            $("#lbl_weishengsuE").html(data.d[13]);
                            $("#lbl_shihuangchundangliang").html(data.d[14]);
                            $("#lbl_nikesuan").html(data.d[15]);
                            $("#lbl_huluobosu").html(data.d[16]);

                            $("#lbl_gai").html(data.d[17]);
                            $("#lbl_ling").html(data.d[18]);
                            $("#lbl_jia").html(data.d[19]);
                            $("#lbl_na").html(data.d[20]);
                            $("#lbl_mei").html(data.d[21]);
                            $("#lbl_tie").html(data.d[22]);
                            $("#lbl_xin").html(data.d[23]);
                            $("#lbl_xi").html(data.d[24]);
                            $("#lbl_tong").html(data.d[25]);
                            $("#lbl_men").html(data.d[26]);
                            $("#lbl_dian").html(data.d[27]);
                        }
                    });
                }
            });


        });

       
       
</script>
<!-----更改数量---->
<script language="javascript" type="text/javascript">
    function Txt_Number_Chanage(Txt_Number) {

        var test = $(this).find("[id=RawName]").html();
        var Nunmber = $("#Txt_jinghanliang" + Txt_Number).val();
        var RawName = $("#Txt_jinghanliang" + Txt_Number).parent().parent().find("[id=RawName]").html();
        var lblvalue = $("#lbl_reliang").html() + "," +
                         $("#lbl_danbaizhi").html() + "," +
                 $("#lbl_zhifang").html() + "," +
                 $("#lbl_tanshuihuahewu").html() + "," +
                 $("#lbl_shanshixianwei").html() + "," +

                 $("#lbl_weishengsuA").html() + "," +
                 $("#lbl_weishengsuB1").html() + "," +
                 $("#lbl_weishengsuB2").html() + "," +
                 $("#lbl_weishengsuC").html() + "," +
                 $("#lbl_weishengsuE").html() + "," +
                 $("#lbl_shihuangchundangliang").html() + "," +
                 $("#lbl_nikesuan").html() + "," +
                 $("#lbl_huluobosu").html() + "," +

                 $("#lbl_gai").html() + "," +
                 $("#lbl_ling").html() + "," +
                 $("#lbl_jia").html() + "," +
                 $("#lbl_na").html() + "," +
                 $("#lbl_mei").html() + "," +
                 $("#lbl_tie").html() + "," +
                 $("#lbl_xin").html() + "," +
                 $("#lbl_xi").html() + "," +
                 $("#lbl_tong").html() + "," +
                 $("#lbl_men").html() + "," +
                 $("#lbl_dian").html();
        $.ajax({
            type: "Post",
            url: "../../PostDate.aspx/RawNutrient",
            data: "{'RawNumber':'" + RawName + "," + Nunmber + "," + Txt_Number + "," + lblvalue + "'}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function (data) {

                $("#lbl_reliang").html(data.d[0]);

                $("#lbl_danbaizhi").html(data.d[1]);
                $("#lbl_zhifang").html(data.d[2]);
                $("#lbl_tanshuihuahewu").html(data.d[3]);
                $("#lbl_shanshixianwei").html(data.d[4]);

                $("#lbl_weishengsuA").html(data.d[5]);
                $("#lbl_weishengsuB1").html(data.d[6]);
                $("#lbl_weishengsuB2").html(data.d[7]);
                $("#lbl_weishengsuC").html(data.d[8]);
                $("#lbl_weishengsuE").html(data.d[9]);
                $("#lbl_shihuangchundangliang").html(data.d[10]);
                $("#lbl_nikesuan").html(data.d[11]);
                $("#lbl_huluobosu").html(data.d[12]);

                $("#lbl_gai").html(data.d[13]);
                $("#lbl_ling").html(data.d[14]);
                $("#lbl_jia").html(data.d[15]);
                $("#lbl_na").html(data.d[16]);
                $("#lbl_mei").html(data.d[17]);
                $("#lbl_tie").html(data.d[18]);
                $("#lbl_xin").html(data.d[19]);
                $("#lbl_xi").html(data.d[20]);
                $("#lbl_tong").html(data.d[21]);
                $("#lbl_men").html(data.d[22]);
                $("#lbl_dian").html(data.d[23]);
            }
        });


        // $("#ButSet").click();

    }
    
</script>
<!---开关效果-->
<script language="javascript" type="text/javascript">
    var aHtml = "";
    $(document).ready(function () {

        var a = "<%= zhi %>";

        if (a == "保存") {
            $(".add_new").html(a);
            $("#Dish").css("display", "none");
            $("#RawMaterial").css("display", "block");
        } else if (a == "新增") {

            $(".add_new").html(a);
            $("#Dish").css("display", "block");
            $("#RawMaterial").css("display", "none");

        }
    });
    function aa() {

        if ($("#RawMaterial").css("display") == "none") {

            $(".add_new").html("保存");
            aHtml = $(".add_new").html();
            $("#HiddenField1").val(aHtml);

            $("#Dish").css("display", "none");
            $("#RawMaterial").css("display", "block");
        }
        else {

            $(".add_new").html("新增");
            aHtml = $(".add_new").html();
            $("#HiddenField1").val(aHtml);

            $("#Dish").css("display", "block");
            $("#RawMaterial").css("display", "none");
        }
    }
   
</script>
<!------菜谱库---->
<script language="javascript" type="text/javascript">


    function show_list() {
        TINY.box.show({ html: '<div class=\'boxli\'>' + $("#Div_DataList_Library").html() + '</div>', boxid: 'frameless', animate: true });
    }


    //选择菜品库
    function Library(Librarydata) {

        $.ajax({
            type: "Post",
            url: "../../PostDate.aspx/Library_Select",
            data: "{'Library':'" + Librarydata + "'}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function (data) {
                //  alert(Librarydata);
            }
        });
        TINY.box.hide();
        $("#ButLibrary").click();
    }

    

</script>
<!-----删除食物---->
<script language="javascript" type="text/javascript">
    function Del_Select_Dish() {
        
        var selectedNodeID = theForm.elements["<%=Tv_Dish.ClientID%>_SelectedNode"].value;
        if (selectedNodeID != "") {
            var selectedNode = document.getElementById(selectedNodeID);
            var value = selectedNode.href.substring(selectedNode.href.indexOf(",") + 3, selectedNode.href.length - 2);
            var text = selectedNode.innerHTML;
            alert("Text = " + text + "\r\n" + "Value = " + value)
            $.ajax({
                type: "Post",
                url: "../../PostDate.aspx/Del_Dish_Info",
                data: "{'Dish_ID':'" + value + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    //  alert(Librarydata);
                }
            });
        }
        else {
            alert("没有选择节点。")
        }

        // 也可以使用内置的对象  
        //   var treeViewData = window["<%=Tv_Dish.ClientID%>" + "_Data"];
        //   selectedNodeID = treeViewData.selectedNodeID.value;
        //   alert(selectedNodeID);
        //    return false;
    }
    

</script>

<!---上传图片----->
<script type="text/javascript">
    $(document).ready(function () {
        $('.pop_dl>dt>span').click(function () {
            $("#popbg").fadeOut();
            $('.pop_dl').fadeOut();
        });
        $("#btn_show").click(function () {
            showSearch();
        });

        $("#ButOk").click(function () {
            $("#popbg").fadeOut();
            $('.pop_dl').fadeOut();
        });
    });

    function UpPoto_Click() {
        popdiv("#pol_search", "500", "auto", 0.2);
    }

    function popdiv(popdiv, width, height, alpha) {
        var A = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
        var D = 0;
        D = Math.min(document.body.clientHeight, document.documentElement.clientHeight);
        if (D == 0) {
            D = Math.max(document.body.clientHeight, document.documentElement.clientHeight)
        }
        var topheight = (A + (D - 300) / 2) + "px";
        $("#popbg").css({ height: $(document).height(), filter: "alpha(opacity=" + alpha + ")", opacity: alpha })
        $("#popbg").fadeIn();

        $(popdiv).css({ left: (($(document).width()) / 2 - (parseInt(width) / 2)) + "px", top: "500px" });
        $(popdiv).fadeIn();
    }
    </script>
<script type="text/javascript">
    $(document).ready(function () {
        $('.pop_dl>dt>span').click(function () {
            $("#popbg").fadeOut();
            $('.pop_dl').fadeOut();
        });
        $("#btn_show").click(function () {
            showSearch();
        });

        $("#but_Raw_Up").click(function () {
            $("#popbg").fadeOut();
            $('.pop_dl').fadeOut();
        });
    });

    function Up_Raw_Poto_Click() {
        popdiv("#pol_search", "500", "auto", 0.2);
    }

    function popdiv(popdiv, width, height, alpha) {
        var A = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
        var D = 0;
        D = Math.min(document.body.clientHeight, document.documentElement.clientHeight);
        if (D == 0) {
            D = Math.max(document.body.clientHeight, document.documentElement.clientHeight)
        }
        var topheight = (A + (D - 300) / 2) + "px";
        $("#popbg").css({ height: $(document).height(), filter: "alpha(opacity=" + alpha + ")", opacity: alpha })
        $("#popbg").fadeIn();

        $(popdiv).css({ left: (($(document).width()) / 2 - (parseInt(width) / 2)) + "px", top: "100px" });
        $(popdiv).fadeIn();
    }
</script>
<!-----新建-------->
<script language="javascript" type="text/javascript">
    function ClearPageInput_Dish() {
        $("#ButClear_Dish").click();
    }
   
</script>

<!---食物类别---->
<script language="javascript" type="text/javascript">
    function Clear_Raw_Type(RawID) {
        
        var test = $("#Raw_Type" + RawID).html();
        if (test == null) {
            $.ajax({
                type: "Post",
                url: "../../PostDate.aspx/Raw_Del",
                data: "{'Raw_Del_Id':'" + RawID + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    //  alert(Librarydata);
                }

            });
        } else {

            $("#Raw_Type" + RawID).parent().parent().remove();
        }

    }
    function add_raw_type() {
        //  $("#but_Add_Row").click();
        var Xuhao = 0;
        Xuhao = Xuhao + 1;
        var strId = Math.floor(Math.random() * 1000 + 1);
        $("#raw_type").append(
    "<tr id=\"add_" + strId + "\">" +
    "<td class='xh_td'>" + strId + "</td>" +
    "<td id='leibie'><input type='text' id ='Raw_Type" + strId + "'/></td>" +
    "<td align='center'>" +
    "<a href='#'onclick='Clear_Raw_Type(" + strId + ")'><img src='../../Images/trash.gif'/></a>" +
    "</td></tr>");
    }
    function add_raw_Type_Info() {

        var rawname = "";
        $("#raw_type").each(
    function () {

        if ($(this).html().toString().indexOf("add_") > 0) {
            var temp1 = $(this).find("[id=leibie]").children().val();
            rawname = rawname + temp1 + ",";
        }
    });

        $.ajax({
            type: "Post",
            url: "../../PostDate.aspx/Raw_New",
            data: "{'Raw_New_Name':'" + rawname + "'}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function (data) {
                //  alert(Librarydata);
            }
        });



    }
</script>
<!---菜品类别---->
<script language="javascript" type="text/javascript">

    function Clear_Dish_Type(RawID) {

        var test = $("#Dish_Type" + RawID).html();
        if (test == null) {
            $.ajax({
                type: "Post",
                url: "../../PostDate.aspx/Dish_Del",
                data: "{'Dish_Del_Id':'" + RawID + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    //  alert(Librarydata);
                }
            });
        } else {

            $("#Dish_Type" + RawID).parent().parent().remove();
        }
    }
    function add_Dish_type() {
        //  $("#but_Add_Row").click();
        
        var Xuhao = 0;
        Xuhao = Xuhao + 1;
        var strId = Math.floor(Math.random() * 1000 + 1);
        $("#Dish_Type").append(
    "<tr id=\"add_" + strId + "\">" +
    "<td class='xh_td'>" + strId + "</td>" +
    "<td id='leibie'><input type='text' id ='Dish_Type" + strId + "'/></td>" +
    "<td align='center'>" +
    "<a href='#' onclick='Clear_Dish_Type(" + strId + ")'><img src='../../Images/trash.gif'/></a>" +
    "</td></tr>");
    }
    function add_Dish_Type_Info() {
        
        var rawname = "";
        $("#Dish_Type").each(
    function () {

        if ($(this).html().toString().indexOf("add_") > 0) {
            var temp1 = $(this).find("[id=leibie]").children().val();
            rawname = rawname + temp1 + ",";
        }
    });

        $.ajax({
            type: "Post",
            url: "../../PostDate.aspx/Dish_New",
            data: "{'Dish_New_Name':'" + rawname + "'}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function (data) {
                //  alert(Librarydata);
            }
        });



    }
</script>
</head>

<body>
    <form id="form1" runat="server">

    <!---控件隐藏区--->
 
 
    <asp:Button ID="ButLibrary" runat="server" onclick="ButLibrary_Click" style="display:none"/>
    <asp:Button ID="ButClear_Dish" runat="server" onclick="ButClear_Dish_Click" style="display:none"/>
    <asp:HiddenField ID="HiddenField1" runat="server" />
    <asp:HiddenField ID="RawSet" runat="server" />
   
  
<div class="top clearfix">
  <div class="logo"><a href="#"><img src="../../Images/LOGO.jpg"  alt="海油发展配餐服务公司"/ ></a></div>
  <div class="name">
    <div>
    <span class="left_span">2012年12月13日</span><span class="right_span">星期一</span>
    </div>
    <div><span class="left_span"><span>
      <p></p>
      张三</span> <strong>您好!</strong></span><span class="right_span">
      <p></p>
    <a href="#">注销</a></span></div>
  </div>
</div>
<div class="nav_1">
  <div class="nav_width1000 clearfix">
  <dl class="position_dl">
                <dt>营养配餐</dt>
                <dd id="dd_ss_1" class="san_dd">
                    <a href="new_peic.aspx" onclick="ddClass(1,6)">
                        <img src="../../Images/fxj.gif" />新配餐</a></dd>
                <dd id="dd_ss_2" class="qi_dd">
                    <a href="shiputzypj_Manage.aspx" onclick="ddClass(2,6)">食谱调整与评价</a></dd>
                <!--当选择是在加个 hover_qidd-->
                <dd id="dd_ss_3" class="si_dd">
                    <a href="Caigou_Manage.aspx" onclick="ddClass(3,6)">采购计划</a></dd>
                <dd id="dd_ss_4" class="si_dd">
                    <a href="Caipu_Manage.aspx" onclick="ddClass(4,6)">菜谱管理</a></dd>
                <dd id="dd_ss_5" class="si_dd hover_sandd">
                    <a href="Caipin_Manage.aspx" onclick="ddClass(5,6)">基础设置</a></dd>
                <dd id="dd_ss_6" class="si_dd" style="background: none">
                    <a href="Shipu_Week_List.aspx" onclick="ddClass(6,6)">
                        <img src="../../Images/fxj.gif" />配餐报表</a></dd>
            </dl>
    <div class="index_button"><a href="#">
      <p class="index_img"></p>
      首页</a><a href="#">
      <p class="happ_img"></p>
      帮助</a>
      </div>
  </div>
</div>

<div class="Center_Content" id="div2_1" style="display:block">

  
 <div class="Create_Recipe">
   <div class="left_CR">
  
      
    <div class="Recipe_0206" id="Dish" >  
      <h1><a href="javascript:void(0);" onclick="show_list();">选择菜谱</a></h1>
      <div Id="Dl_div" class="Dl_div" style="height:450px; overflow-y:scroll;">
     <asp:TreeView ID="Tv_Dish" runat="server">
         <SelectedNodeStyle BackColor="Yellow" BorderColor="Yellow" />
          </asp:TreeView>
        
      </div> 
       <table>
      <tr>
      <td><a href="#" class="add_botton" onclick="ClearPageInput_Dish()">
      <img src="../../Images/add.gif" /></a></td>
      <td><a href="#" class="add_botton" onclick="Del_Select_Dish()"><img src="../../Images/delt_img.gif" /></a></td>
      </tr>

      <tr>
      <td colspan="2">  <asp:TextBox ID="Txt_Dish_Seach" Columns="10" Width="100px"  runat="server"></asp:TextBox>
         <input type="button" id="But_Dish_Seach" value="搜索" />
          </td>
      </tr>
      </table>
    </div>
    <div class="Recipe_0206" id="RawMaterial" style="height:450px; overflow-y:scroll;" >
     <h2>原料</h2>  
     <div class="Recipe_0206"   style="overflow:auto">
     <asp:TreeView ID="Tv_RawMaterial" runat="server" OnSelectedNodeChanged="Tv_RawMaterial_SelectedNodeChanged">
         <SelectedNodeStyle BackColor="Yellow" BorderColor="Yellow" />
          </asp:TreeView>
     </div>
    
      </div>
   
    </div>

   <div class="Right_CR">
    <div class="div_0207 left_width400">
     <h1><img src="../../Images/cp_h1_01.gif" />菜品信息<asp:Button ID="bt_zengjia" 
             runat="server" Text="保存" onclick="bt_zengjia_Click" />
        </h1>
     <table width="100%" border="0" cellspacing="0" cellpadding="0" class="td_padding_01">
      <tr>
        <td class="width155">&nbsp;菜品名称：</td>
        <td>
            <asp:TextBox ID="Txt_caiming" runat="server"></asp:TextBox>
          </td>
      </tr>
       <tr>
       <td colspan="2" align="center"> 
       <asp:DropDownList ID="Dr_library" runat="server" 
                onselectedindexchanged="Dr_library_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:DropDownList ID="Dr_DishType" runat="server">
            </asp:DropDownList>
        
           
        </td>
        
      </tr>
      <tr>
        <td class="width155">&nbsp;特  点：</td>
        <td>
            <asp:TextBox ID="Txt_tedian" runat="server" Height="56px" Width="166px"></asp:TextBox>
          </td>
      </tr>
      <tr>
        <td valign="top" class="width155">&nbsp;做  法：</td>
        <td><asp:TextBox 
                ID="Txt_zuofa" runat="server" Height="56px" Width="166px"></asp:TextBox>
          </td>
      </tr>
    </table>
    <div class="img_touxiang">
    <span>
        <asp:Image ID="ImgUpPoto" runat="server" />
   <%-- <img src="../../Images/Gnome-Face.png" />--%></span>
    <a href="#" onclick="UpPoto_Click()">重设图片</a>
       
        
    </div>
    </div>
    
    <div class="div_0207 right_width">
     
     <h1><img src="../../Images/cp_h1_02.gif" />营养素信息</h1>
   
     <dl>
       <dt>主要膳食营养素含量</dt>
	   <dd style="width:350px"><table align="center">
	   	<tr>
			<td align="right">热量：</td>
			<td>
                <asp:Label ID="lbl_reliang" runat="server" Text="Label"></asp:Label>
                千卡(kcal)</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td align="right">蛋白质：</td>
			<td>
                <asp:Label ID="lbl_danbaizhi" runat="server" Text="Label"></asp:Label>
                
                克(g)</td>
		</tr>
		<tr>
			<td align="right">脂肪：</td>
			<td>
                <asp:Label ID="lbl_zhifang" runat="server" Text="Label"></asp:Label>
             
                千卡(kcal)</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td align="right">碳水化合物：</td>
			<td>
                <asp:Label ID="lbl_tanshuihuahewu" runat="server" Text="Label"></asp:Label>
                
                克(g)</td>
		</tr>
				<tr>
			<td align="right">膳食纤维：</td>
			<td>
                <asp:Label ID="lbl_shanshixianwei" runat="server" Text="Label"></asp:Label>
               
                千卡(kcal)</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td align="right"></td>
			<td></td>
		</tr>
	   </table></dd>
     </dl>
     
     <dl>
       <dt>维生素</dt>
	   <dd style="width:350px"><table align="center">
	   	<tr>
			<td align="right">维生素A：</td>
			<td>
                <asp:Label ID="lbl_weishengsuA" runat="server" Text="Label"></asp:Label>
           
                微克(ug)</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td align="right">维生素B1：</td>
			<td>
                <asp:Label ID="lbl_weishengsuB1" runat="server" Text="Label"></asp:Label>
                
                毫克(mg)</td>
		</tr>
		<tr>
			<td align="right">维生素B2：</td>
			<td>
                <asp:Label ID="lbl_weishengsuB2" runat="server" Text="Label"></asp:Label>
              
                毫克(mg)</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td align="right">维生素C：</td>
			<td>
                <asp:Label ID="lbl_weishengsuC" runat="server" Text="Label"></asp:Label>
                
                毫克(mg)</td>
		</tr>
		<tr>
			<td align="right">维生素E：</td>
			<td>
                <asp:Label ID="lbl_weishengsuE" runat="server" Text="Label"></asp:Label>
             
                毫克(mg)</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td align="right">视黄醇当量：</td>
			<td>
                <asp:Label ID="lbl_shihuangchundangliang" runat="server" Text="Label"></asp:Label>
               
                微克(ug)</td>
		</tr>
		<tr>
			<td align="right">尼克酸：</td>
			<td>
                <asp:Label ID="lbl_nikesuan" runat="server" Text="Label"></asp:Label>
               
                毫克(mg)</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td align="right">胡萝卜素：</td>
			<td>
                <asp:Label ID="lbl_huluobosu" runat="server" Text="Label"></asp:Label>
                
                毫克(mg)</td>
		</tr>
	   </table></dd>
     </dl>
     
     <dl>
       <dt>矿物质含量(毫克(mg))</dt>
	   <dd style="width:350px"><table align="center">
	   <tr>
			<td align="right">钙：</td>
			<td>
                <asp:Label ID="lbl_gai" runat="server" Text="Label"></asp:Label>
                
                </td>
			<td>&nbsp;</td>
			<td align="right">磷：</td>
			<td>
                <asp:Label ID="lbl_ling" runat="server" Text="Label"></asp:Label>
                
                </td>
			<td>&nbsp;</td>
			<td align="right">钾：</td>
			<td>
                <asp:Label ID="lbl_jia" runat="server" Text="Label"></asp:Label>
                
                </td>
		</tr>
		<tr>
			<td align="right">钠：</td>
			<td>
                <asp:Label ID="lbl_na" runat="server" Text="Label"></asp:Label>
                
                </td>
			<td>&nbsp;</td>
			<td align="right">镁：</td>
			<td>
                <asp:Label ID="lbl_mei" runat="server" Text="Label"></asp:Label>
                
                </td>
			<td>&nbsp;</td>
			<td align="right">铁：</td>
			<td>
                <asp:Label ID="lbl_tie" runat="server" Text="Label"></asp:Label>
                
                </td>
		</tr>
		<tr>
			<td align="right">锌：</td>
			<td>
                <asp:Label ID="lbl_xin" runat="server" Text="Label"></asp:Label>
                
                </td>
			<td>&nbsp;</td>
			<td align="right">硒：</td>
			<td>
                <asp:Label ID="lbl_xi" runat="server" Text="Label"></asp:Label>
                
                </td>
			<td>&nbsp;</td>
			<td align="right">铜：</td>
			<td>
                <asp:Label ID="lbl_tong" runat="server" Text="Label"></asp:Label>
                
                </td>
		</tr>
		<tr>
			<td align="right">锰：</td>
			<td>
                <asp:Label ID="lbl_men" runat="server" Text="Label"></asp:Label>
               
                </td>
			<td>&nbsp;</td>
			<td align="right">碘：</td>
			<td>
                <asp:Label ID="lbl_dian" runat="server" Text="Label"></asp:Label>
               
                </td>
			<td>&nbsp;</td>
			<td align="right">&nbsp;</td>
			<td>
                &nbsp;</td>
		</tr>
	   </table></dd>
     </dl>

    </div>
    
    <div class="div_0207 left_width400" style="height:200px; overflow:auto;">  
    
     <h1><img src="../../Images/cp_h1_03.gif" />菜品原料信息</h1>
     <a href="#" class="add_new" onclick="aa();">新增</a>  

     <table width="100%" border="0" cellspacing="0" cellpadding="0" class="swxx_table">
     
      <tr>
        <td style="width:50px">序号</td>
        <td style="width:135px">原料名称</td>
        <td style="width:65px">种类</td>
        <td style="width:65px">净用量</td>
        <td style="width:65px">热量</td>
        <td>删除</td>
      </tr>
     <tbody id="New_Raw_Row" >
    
             <%= Session["strTableHtml"] %>
        
 
      </tbody>
         
     
     
    
    </table>
 
    </div>
    
   </div>
 </div>

</div>




<div id="UpPoto_Dish">
        <dl class="pop_dl" id="pol_search" style="width: 460px;">
            <dt><span>关闭</span></dt>
            <dd style="padding: 0px;">
                <table border="0" width="450px" style="background-color: White; color: Black;" cellpadding="1"
                    cellspacing="1">
                    <tr style="background-color: White;">
                        <td style="width: 80px; text-align: right;">
                            <asp:Label ID="Label4" runat="server" Text="文件上传" Font-Size="11pt" Font-Bold="False"
                                Font-Names="宋体" ForeColor="Black"></asp:Label>
                        </td>
                        <td style="width: 120px">  
                            <asp:FileUpload ID="File_Upload" runat="server" />                       
                        </td>
                        <td style="width: 80px; text-align: right;">                   
                            
                            <asp:Button ID="ButOk" runat="server" OnClick="butUpClose_Click" Text="确定" />
                        </td>
                        
                    </tr>           
                </table>
            </dd>
        </dl>     
         <div id="popbg">
        </div> 
    </div>

<div class="footer"> 
<strong>中海油能源发展配餐服务公司渤海自营油田作业公司&nbsp;&nbsp;版权所有@CopyRight 2012</strong><span>技术支持：北京天择嘉业科技有限公司</span>
 </div>
    </form>
</body>
</html>